<?php
namespace common\components\services\msg;

use yii\base\Component;

class MsgSendManage extends Component{
    public function send($id)
    {
        $data['messagelog_id'] = $id;
        if(YII_ENV_PROD){
            $data['env'] = 'prod';
        }else{
            $data['env'] = 'test';
        }

        \Yii::$app->swooleClientnew->send($data);
    }
}